<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="cn.bbs.ba.session.SessionFactory"%>
<%@page import="cn.bbs.ba.base.UserInfo"%>
<%@ include file="../../head.jsp"%>
<%	
	UserInfo userInfo = (UserInfo)SessionFactory.getSessionDto(request).getMap();
%>

<html>
<head>
<link rel="stylesheet" href="<%=webBackPath %>css/common.css" type="text/css"/>
<script type="text/javascript" src="<%=webBackPath %>js/calendar.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/lib/public.js"></script>
<script type="text/javascript" src="<%=webBackPath %>js/prototype-1.6.0.3.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/jquery-1.4.2.min.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/json.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/lib/public.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/lib/md5.js"></script> 
<script type="text/javascript">			
function checkData(form) {
	
	if (!validate_email(form.email.value)) {
		alertPP("email输入不正确");
		return false;
	}
	return true;
}
/**
* 提交
*/
function doSubmit(){
	var form = document.editForm;
	if(!checkData(form)) {
		return false;
	}
	form.email.value = document.getElementById("email").value;
	form.mobile.value = document.getElementById("mobile").value;
	form.submit();
}
</script>
</head>
<body>

<div id="man_zone">
    <table width="70%" border="1" align="center"  cellpadding="3" cellspacing="1">
	<tr>
      <td colspan="4"><bbsh:BBSH name="基本信息"/></td>
    </tr>
    <tr>
      <td width="18%" class="left_title_1"><bbsh:BBSH name="用户名"/>：</td>
      <td width="82%" colspan="3">
      		<%=userInfo.getUserName() %>
	  </td>
    </tr>
	 <tr>
      <td class="left_title_1"><bbsh:BBSH name="开始日期"/>：</td>
      <td width="30%"><%=userInfo.getValue("openDate")%> </td>
      <td class="left_title_1"><bbsh:BBSH name="结束日期"/>：</td>
      <td width="30%"><%=userInfo.getValue("endDate") %></td>
    </tr>
	
   	<tr>
      <td class="left_title_1"> <bbsh:BBSH name="Email"/>：</td>
      <td width="30%"> <INPUT TYPE="text" class="normal_txt" id="email" NAME="email" maxlength="30" size="35"  value="<%=userInfo.getValue("email") %>"></td>
      <td class="left_title_1" valign="top"><bbsh:BBSH name="手机号码"/>:</td>
      <td width="30%">
			<INPUT TYPE="text" class="normal_txt" id="mobile" NAME="mobile"  value="<%=userInfo.getValue("mobile") %>">
	   </td>
    </tr>
   	<tr>
      <td></td>
      <td colspan="3"><INPUT TYPE="button" class="normal_button" onclick="doSubmit();" value="<bbsh:BBSH name='修改'/>"></td>
    </tr>
  </table>
</div>
 <form name="editForm" action="<%=webAppPath %>editGerenInfo.pk" method="post">
	 <input type="hidden" name="updateFlag" value="userInfo"> 
 	<input type="hidden" name="email"> 
 	<input type="hidden" name="mobile"> 
 </form>
</body>
</html>
